package com.beiding.utils;

import org.springframework.binding.message.MessageBuilder;
import org.springframework.binding.message.MessageResolver;

public class ValidateUtils {

    private static final MessageBuilder BUILDER = new MessageBuilder();

    public static MessageResolver error(String source, String defaultText) {
        return BUILDER.error().source(source).defaultText(defaultText).build();
    }

}
